#include <stdio.h>
#include <stdlib.h>

/* 初步确认为低于4字节按照相应对齐 1 2 4 （3-4） (5-7) --8 
 * 高于4字节4的倍数
 */
struct test {
	unsigned char chr :8;

	unsigned int a:7;
	unsigned int b:1;

	unsigned int c:3;
	unsigned int d:2;
	unsigned int e:3;

	unsigned int f:6;
	unsigned int g:2;

	unsigned int h:4;
	unsigned int i:4;
};

int main(void)
{
	printf("%zd\n", sizeof(struct test));	
	exit(EXIT_SUCCESS);
}
